import React, { Component } from 'react'

export default class Friend extends Component {
  render() {
    return (
      <div>
        <h4>我的朋友</h4>
        <button onClick={this.login}>登录</button>
      </div>
    )
  }
  login = () => {
    this.props.history.push('/')
    // this.props.history.go(-2)
  }
}
